







data inc1993;
   set income.innt1993(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)  
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc1993;
  set  inc1993;
  year=1993;
  age=alder+0;
  drop alder;
  
  run;
 
 
data inc1994;
   set income.innt1994(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)  
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc1994;
  set  inc1994;
  year=1994;
  age=alder+0;
  drop alder;
  run;

data inc1995;
   set income.innt1995(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd) rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc1995;
  set  inc1995;
  year=1995;
  age=alder+0;
  drop alder;
  run;
 
data inc1996;
   set income.innt1996(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc1996;
  set  inc1996;
  year=1996;
age=alder+0;
  drop alder;
  run;


data inc1997;
   set income.innt1997(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc1997;
  set  inc1997;
  year=1997;
 age=alder+0;
  drop alder;
  run;

data inc1998;
   set income.innt1998(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc1998;
  set  inc1998;
  year=1998;
 age=alder+0;
  drop alder;
  run;
  
data inc1999;
   set income.innt1999(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc1999;
  set  inc1999;
  year=1999;
 age=alder+0;
  drop alder;
  run;
 
data inc2000;
   set income.innt2000(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc2000;
  set  inc2000;
  year=2000;
 age=alder+0;
  drop alder;
  run;


data inc2001;
   set income.innt2001(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc2001;
  set  inc2001;
  year=2001;
age=alder+0;
  drop alder;
  run;

data inc2002;
   set income.innt2002(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd) rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc2002;
  set  inc2002;
  year=2002;
 age=alder+0;
  drop alder;
  run;
 

data inc2003;
   set income.innt2003(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
data inc2003;
  set  inc2003;
  year=2003;
 age=alder+0;
  drop alder;
  run;


data inc2004;
   set income.innt2004(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
data inc2004;
  set  inc2004;
  year=2004;
 age=alder+0;
  drop alder;
  run;

data inc2005;
   set income.innt2005(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc2005;
  set  inc2005;
  year=2005;
 age=alder+0;
  drop alder;
  run;
 
data inc2006;
   set income.innt2006(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
  data inc2006;
  set  inc2006;
  year=2006;
  age=alder+0;
  drop alder;
  run;

data inc2007;
   set income.innt2007(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
   
 run;
data inc2007;
  set  inc2007;
  year=2007;
 age=alder+0;
  drop alder;
  run;

data inc2008;
   set income.innt2008(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utlskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)  rename=(kode147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)      
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd)  rename=(kj=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
data inc2008;
  set  inc2008;
  year=2008;
  age=alder+0;
  drop alder;
  run;



data inc2009;
   set income.innt2009(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak2gen=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_bidr=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)    rename=(k_147=unemp_ben)  
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd) rename=(kjonn=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc2009;
  set  inc2009;
  year=2009;
  age=alder+0;
  drop alder;
  run;
 
 
data inc2010;
   set income.innt2010(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak2gen=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(topskagr=stax_b) 
   rename=(utskatt=tot_tax)  rename=(alminntk=ord_income) 
   rename=(nformsta=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_ston=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)   rename=(k_147=unemp_ben) 
   rename=(kode217=retir_pens)  rename=(kode218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pensjon=pi_pension_trygd) rename=(kjonn=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pg_lonn=pi_wage) rename=(pg_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pgiv_jsf=pi_primary_naering));
 run;
 data inc2010;
  set  inc2010;
  year=2010;
 age=alder+0;
  drop alder;
  run;
 
 
data inc2011;
   set income.innt2011(rename=(bokomm=municipality) rename=(bydel=borough)
   rename=(fodeland=coutry_bth)  rename=(landbak3gen=country_bg) 
   rename=(statsbor=citiz)  rename=(invkat=imm_category) 
   rename=(sivstand=marriage)  rename=(toppskattgrlag=stax_b) 
   rename=(utskatt=tot_tax)  rename=(alminnt_e_sarfr_egen=ord_income) 
   rename=(nettoform_stat=net_wealth)  rename=(stipend=paid_schol) 
   rename=(bostotte=hous_allo)  rename=(sos_ston=social_contr) 
   rename=(barntryg=kid_allow)  rename=(nivafelt=educ) 
   rename=(utdigang=kode_ongoing_educ)   
   rename=(k_217=retir_pens)  rename=(k_218=disab_ins) 
   rename=(rentinnt=gross_int_inc)  rename=(aksje=dividends) 
   rename=(gevinst=capital_gains)  rename=(andrekap=other_cap_income) 
   rename=(ftryg=social_sec_ben)  rename=(negoverf=neg_transf) 
   rename=(brutto=gross_inc)  rename=(wyrkinnt=empl_income) 
   rename=(wskplovf=taxable_transf)  rename=(wskfrovf=tax_ex_transf) 
   rename=(wsaminnt=tot_income)  rename=(wskatovf=tax_neg_transf) 
   rename=(wies=inc_aft_tax)   rename=(wiesrenb=inc_aft_tax_homepo) 
   rename=(arbled=unemp_ben_1)  rename=(overfor=sum_transfer)   
   rename=(famnr=famnum) rename=(fnr=persnum)
   rename=(pi_pensjoner=pi_pension_trygd)  rename=(kjonn=male)
   rename=(wlonn=wage) rename=(wkapinnt=capital_income)
   rename=(pi_lonn=pi_wage) rename=(pi_annen=pi_other_naering) rename=(naering=net_naering)
   rename=(pi_jsf=pi_primary_naering));
 run;
data inc2011;
  set  inc2011;
  year=2011;
 age=alder+0;
  drop alder;
  run;
 

  
  
 data all_survival;
  set  inc2013 inc2012 inc2011 inc2010 inc2009 inc2008 inc2007 inc2006 inc2005 inc2004
  inc2003 inc2002  inc2001 inc2000 inc1999 inc1998 inc1997 inc1996 inc1995 inc1994 inc1993;
 run;

data edu4digit;
set lev.utd_base;
run;
 
***** data trasnfered to stata dta format using export data from menu;

